package com.blacktea.creationalpatterns.singletonpattern;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @description: 非线程安全
 * @author: black tea
 * @date: 2023/3/19 16:15
 */
@Component
@Scope("singleton") // 指定类型为单例，实际上默认就是单例
public class MySingleton {

}
